﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ANMCMaster.Master" AutoEventWireup="true" CodeBehind="MemberManager.aspx.cs" Inherits="AllNations.WebAppAdmin.MemberManager" %>
<%@ Register src="~/Controls/UserPageLeftNav.ascx" TagName="UserPageLeftNav" TagPrefix="ANMC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ANHeaderContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ANPageHeader" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ANBodyContent" runat="server">
    <div class="leftnav">
        <div style="margin: 11px 0px 25px 0px;"><asp:Image ID="Image2" runat="server" ImageUrl="~/Images/sectionTitleMembership.png" /></div>
        <ANMC:UserPageLeftNav ID="UserPageLeftNav1" runat="server" Selected="MemberManager" />
    </div>
    <div class="rightcontentarea">
        <div id="contentBoxHolder">
            <div class="ContentTitleBar">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/titleMembershipManager.png" />
            </div>
            <div style="padding-bottom: 7px;">
                <asp:LinkButton ID="lnkExport" runat="server" OnClick="lnkExport_Click" Font-Underline="false"><asp:Image runat="server" ImageUrl="~/Images/excel.gif" ImageAlign="AbsMiddle" /> Export</asp:LinkButton>
            </div>
            <telerik:RadGrid ID="gridMembers" runat="server" AllowSorting="true" AllowPaging="true" PageSize="25">
                <MasterTableView AllowPaging="true" PageSize="15" AutoGenerateColumns="false" DataKeyNames="member_id" EditFormSettings-EditColumn-ButtonType="ImageButton">
                    <Columns>
                        <telerik:GridTemplateColumn ItemStyle-Width="75px" ReadOnly="true" AllowFiltering="false">
                            <ItemTemplate>
                                <asp:Image runat="server" ImageUrl='<%# Eval("icon_filename_txt") %>' Width="75" />
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="UserName" HeaderText="로그인" ReadOnly="true" AllowFiltering="false" />
                        <telerik:GridBoundColumn DataField="korean_nm" HeaderText="성명" ReadOnly="true" />
                        <telerik:GridTemplateColumn DataField="Email" HeaderText="Email" ReadOnly="true" AllowFiltering="false">
                            <ItemTemplate>
                                <asp:Label runat="server" Text='<%# Eval("Email") %>' /><asp:Label runat="server" Text="*" Visible='<%# !(bool)Eval("confirmed_ind") %>' ForeColor="Red" Font-Bold="true" />
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="phone_num" HeaderText="전화번호" ReadOnly="true" AllowFiltering="false" />
                        <telerik:GridBoundColumn DataField="group_nm" HeaderText="사역" ReadOnly="true" AllowFiltering="false" />
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
            <asp:SqlDataSource ID="dsSmallGroups" runat="server" ConnectionString="<%$ ConnectionStrings:DbConn %>" SelectCommand="proc_cm_ListSmallGroup" SelectCommandType="StoredProcedure" />
            <div style="margin-top: 7px;"><asp:Label runat="server" ForeColor="Red" Font-Bold="true" Text="*" />email address is not confirmed.</div>
        </div>
        <div style="clear: both;"></div>
    </div>
    <div style="clear: both;"></div>
</asp:Content>
